package com.caine.policy;

import java.security.AccessController;
import java.security.PrivilegedAction;

/**
 * @Author: CaineZhu
 * @Description:
 * @Date: Created in 19:15 2020/11/18
 * @Modified By:
 */
public class Person {

    public static void getp() {
        AccessController.doPrivileged(new PrivilegedAction<String>() {
            @Override
            public String run() {
                new Tool().doSomeThing();
                return "something";
            }
        });
    }

    public static void test(){
        new Tool().doSomeThing();
    }
}
